
// 定义不同环境下的接口基础 URL
const baseUrlMap = {
  development: "https://jingqu.kuxia.top",
  test: "https://jingqu.kuxia.top",
  production: "https://jingqu.kuxia.top",
};

// 获取当前的运行环境
const env = process.env.NODE_ENV;

// 根据当前环境选择对应的基础 URL
const baseUrl = baseUrlMap[env] || baseUrlMap.development;
const image = "http://lxj.skych.top/";

// 其他全局配置项
const config = {
  baseUrl,
  appVersion: "1.0.0",
  debug: env === "development",
  timeout: 60000,
  image,
};

export default config;
